﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="AccountReceivableList.aspx.cs"
    Inherits="ITOMMS.Web.Finance.AccountReceivableList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>往来单位应收账款列表</title>
    <link href="../css/AspNetPager.css" rel="stylesheet" type="text/css" />
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />

    <script type="text/javascript" src="../js/ymPrompt.js"></script>
 <!--用到日期控件才使用-->

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <table class="tblDataArea" width="100%">
            <tr class="tblQueryArea">
                <td class="tblDataCaption" colspan="8">
                    <div style="width: 210px;" class="title">
                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" />往来单位应收账款列表</div>
            </tr>
            <tr>
                <td class="tdQueryCaption">
                    起始时间：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt起始时间" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></td>
                <td class="tdQueryCaption">
                    终止时间：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt终止时间" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd'});"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></td>
                <td class="tdQueryField">
                    <asp:Button ID="btnQuery" runat="server" CssClass="cssUICommandButton" OnClick="btnQuery_Click"
                        Text="查询" /></td>
            </tr>
        </table>
        <table class="tblDataArea" width="100%">
            <tr>
                <td class="tdQueryCaption" colspan="7" style="height: 348px; vertical-align: top;">
                    <asp:GridView ID="dgdaoim_sus_plyedr" Width="100%" runat="server" PageSize="25" AllowSorting="True"
                        HorizontalAlign="Center" AllowPaging="False" AutoGenerateColumns="False" CssClass="cssDataGrid" OnRowCommand="dgdaoim_sus_plyedr_RowCommand">
                        <FooterStyle CssClass="cssDataGridFooter"></FooterStyle>
                        <SelectedRowStyle CssClass="cssDataGridSelectedItem"></SelectedRowStyle>
                        <EditRowStyle CssClass="cssDataGridEditItem"></EditRowStyle>
                        <AlternatingRowStyle CssClass="cssDataGridAlternatingItem"></AlternatingRowStyle>
                        <RowStyle CssClass="cssDataGridItem"></RowStyle>
                        <HeaderStyle ForeColor="#CCFFFF" CssClass="cssDataGridHeader"></HeaderStyle>
                        <Columns>
                            <asp:BoundField DataField="SEQNO" HeaderText="序号" />
                            <asp:BoundField DataField="科目编号" HeaderText="科目编号" />
                            <asp:BoundField DataField="部门" HeaderText="部门" />
                            <asp:BoundField DataField="单据编号" HeaderText="单据编号" />
                            <asp:BoundField DataField="经手人" HeaderText="经手人" />
                            <asp:BoundField DataField="科目名称" HeaderText="科目名称" />
                            <asp:BoundField DataField="金额" HeaderText="金额" />
                            <asp:BoundField DataField="合计" HeaderText="合计" />
                            <asp:BoundField DataField="付款方式" HeaderText="付款方式" />
                            <asp:BoundField DataField="起始时间" DataFormatString="{0:yyyy-MM-dd}" HeaderText="起始时间" />
                            <asp:BoundField DataField="终止时间" DataFormatString="{0:yyyy-MM-dd}" HeaderText="终止时间" />
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../Finance/AccountReceivableAdd.aspx?id={0}"
                                HeaderText="编辑" Text="编辑" />
                            <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../Finance/AccountReceivableAdd.aspx?vid={0}"
                                HeaderText="查看" Text="查看" />
                                 <asp:TemplateField HeaderText="删除">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="del" OnClientClick="javascript:return confirm('你确认要删除吗?');" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'>删除</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <div id="AspNetPager">
            <webdiyer:AspNetPager CssClass="paginator" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PrevPageText="前页"
                OnPageChanged="AspNetPager1_PageChanged" PageSize="25">
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>
